package com.project.logistics.bean;

import com.baomidou.mybatisplus.annotation.TableField;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * Created by94988 on 2021/3/16 21:09
 */
@Data
@NoArgsConstructor
//@AllArgsConstructor
public class Repairs {
    int  repairsId;
    Date repairsTime;
    String repairsUserId;
    String serviceUserId;
    String repairsPlace;
    String repairsTelephone;
    String repairsPhoto;
    Date freetime;
    String repairsDetail;
    int repairsStatus;
    String repairKind;

    private  UserDetail userDetail;

    @TableField(exist = false)
    String freetimeStr;

    @TableField(exist = false)
    String repairsTimeStr;
    @TableField(exist = false)
    String status;
//    @TableField(exist = false)
//    String userName;

    public Repairs(int repairsId, Date repairsTime, String repairsUserId, String serviceUserId, String repairsPlace, String repairsTelephone, String repairsPhoto, Date freetime, String repairsDetail, int repairsStatus) {
        this.repairsId = repairsId;
        this.repairsTime = repairsTime;
        this.repairsUserId = repairsUserId;
        this.serviceUserId = serviceUserId;
        this.repairsPlace = repairsPlace;
        this.repairsTelephone = repairsTelephone;
        this.repairsPhoto = repairsPhoto;
        this.freetime = freetime;
        this.repairsDetail = repairsDetail;
        this.repairsStatus = repairsStatus;
    }
}
